#include <d3dx9.h>

#define D3DFVF_MYVERTEX		(D3DFVF_XYZRHW | D3DFVF_DIFFUSE)

struct MyVertex
{
	float			x, y, z, rhw;
	DWORD		color;
};

class MyD3D  //: public L3DEngine
{

public:
	// Constructor & Destructor
	MyD3D();
	virtual ~MyD3D();


	// initializing
	HRESULT			InitD3D(HWND hWnd);
	void				ReleaseD3D();

	// Init data
	HRESULT			InitVB();
	

	// Rendering related
	HRESULT			Render();


protected:
	LPDIRECT3D9							lpd3d;
	LPDIRECT3DDEVICE9				lpd3ddevice;
	LPDIRECT3DVERTEXBUFFER9		lpVB;
};